package com.novax.ex.activity.open.model.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;


/**
 * Description:商品配置
 *
 * @author Deucalion@novax.email
 * @date 2023/2/21 16:47
 */
@Schema(description = "商品配置")
@Data
public class MallProductRequest {
    /** id */
    @Schema(description = "id")
    private Long id;

    /**
    * 商品名称
    */
    @NotBlank
    @Schema(description = "商品名称",required = true)
    private String title;

    /**
     * 商品缩略图
     */
    @Schema(description = "商品缩略图")
    private String image;

    /**
    * 库存数量
    */
    @NotNull
    @Schema(description = "库存数量",required = true)
    private Integer stockCount;

    /**
    * 售卖价格
    */
    @NotNull
    @Schema(description = "售卖价格",required = true)
    private BigDecimal price;

    /**
    * 货币名称(英文简称)
    */
    @NotBlank
    @Schema(description = "货币名称(英文简称)",required = true)
    private String currency;

    /**
    * 排序
    */
    @Schema(description = "排序")
    private Integer sort;

    /**
     * 成本
     */
    @Schema(description = "成本")
    private BigDecimal cost;

    /**
     * 成本-货币名称(英文简称)
     */
    @Schema(description = "成本-货币名称(英文简称)")
    private String costCurrency;
}
